package com.puboot.module.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.puboot.module.admin.mapper.BizFileMapper;
import com.puboot.module.admin.model.BizFile;
import com.puboot.module.admin.service.BizFileService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @Description
 * @Author 申紫微
 * @Data 2020-02-14 14:15:45
 * @Version 1.0
 */
@Service
@AllArgsConstructor
public class BizFileServiceImpl extends ServiceImpl<BizFileMapper, BizFile> implements BizFileService {

    private final BizFileMapper fileMapper;

    @Override
    public int saveFile(BizFile file) {
        return fileMapper.insert(file);
    }

    @Override
    public BizFile selectByFileId(String fid) {
        return fileMapper.selectById(fid);
    }
}
